<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>弹性盒子兼容性-align-self</title>
        <style>
            .flexBox{
                display:-webkit-box;/* OLD - iOS 6-, Safari 3.1-6 */ /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */ 
                display:-moz-box;/* OLD - Firefox 19-  */
                display: -ms-flexbox;      /* TWEENER - IE 10 */
                display: -webkit-flex;     /* NEW - Chrome */ /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */
                display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ *//* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */ 
            }
            .flex-container{
                width: 400px;
                height: 250px;
                /*align-content:flex-start | flex-end | center | space-around | space-between | stretch 等六个值*/
                background-color: lightgrey;
            }
            .flex-item{
                width: 100px;
                min-height: 100px;
                margin: 10px;
                background-color: cornflowerblue;
            }
            .item1{
                -webkit-align-self:flex-start;
                align-self:flex-start;
                /*align-self:flex-start | flex-end | center | stretch | baseline |auto; 等6个值*/
            }
            .item2{
                -webkit-align-self:center;
                align-self:center;
            }
            .item3{
                -webkit-align-self:flex-end;
                align-self:flex-end;
            }
            .item4{
                -webkit-align-self:baseline;
                align-self:baseline;
            }
            .item5{
                -webkit-align-self:stretch;
                align-self:stretch;
            }
        </style>
    </head>
    <body>
        <h1>弹性盒子兼容性-CSS3 弹性盒子(Flex Box)</h1>
        <p>来源:<a href="http://www.runoob.com/css3/css3-flexbox.html"></a>http://www.runoob.com/css3/css3-flexbox.html</p>
        <div class="flexBox flex-container">
            <div class="flex-item item1">itme1</div>
            <div class="flex-item item2">itme2</div>
            <div class="flex-item item3">itme3</div>
            <div class="flex-item item4">itme4</div>
            <div class="flex-item item5">itme5</div>
        </div>
    </body>
</html>